﻿<Window x:Class="MetaBall_HLSL_Test.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shader="clr-namespace:MetaBall_Shader_Lib;assembly=MetaBallShaderLib"
    Title="Window1" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <shader:MetaBall x:Key="metaBallShader" Radius1="{Binding Value, ElementName=sliderRadius}" />
    </Window.Resources>
    <StackPanel>
        <Slider x:Name="sliderRadius" Minimum="0" Maximum="1" SmallChange="0.01" LargeChange="0.1" />
    <Grid x:Name="gridMain" MouseMove="Grid_MouseMove" Effect="{DynamicResource metaBallShader}" Width="900" Height="600">
        <Image Source="/MetaBallHLSLTest;component/bostiskele.png" Stretch="Fill" />
    </Grid>
        </StackPanel>
</Window>
